package com.nondo.rdp.finance.endpoint.api.app.stock;

import com.nondo.rdp.core.model.View;
import com.nondo.rdp.finance.service.MarketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 自选股票
 */
@RestController("apiStockCommon")
@RequestMapping("/api/stock/common")
public class CommonEndpoint {
    @Autowired
    MarketService marketService;

    @RequestMapping("/search")
    public View search(@RequestBody Map<String, Object> searchBean) {
        return marketService.commonSearchKey(searchBean);
    }
}
